package com.dhcc.bpm.modules.metadata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.metadata.entity.GateMetadata;
import com.dhcc.bpm.modules.metadata.vo.GateMetadataVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GateMetadataMapper
 * @Description 网关路由元数据关联表 Mapper 接口
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface GateMetadataMapper extends BaseMapper<GateMetadata> {

	/**
	 * 自定义分页
	 * @Author daina
	 * @Date 17:36 2020/2/21
	 * @param page
	 * @param gateMetadata
	 * @return List<GateMetadataVO>
	 **/
	List<GateMetadataVO> selectGateMetadataPage(IPage page, GateMetadataVO gateMetadata);
	/**
	 * 删除
	 * @Author daina
	 * @Date 17:35 2020/2/21
	 * @param opcGatewayId
	 * @param toLongArray
	 * @return int
	 **/
	int deleteGateMetadata(Long opcGatewayId,@Param("ids") Long[] toLongArray);
}
